﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace AAPCVM
{
    public class Candidate
    {
        public string CandidateID { get; set; }

        public string Name { get; set; }

        public string Age { get; set; }

        public string TotalVotes { get; set; }

        public override string ToString()
        {
            return CandidateID + "," + Name + "," + Age + "," + TotalVotes;
        }

        public string GetIDName()
        {
            return CandidateID + "," + Name;
        }

        public Candidate(string candidateID, string name)
        {
            CandidateID = candidateID;
            Name = name;
        }
    }
}
